using Microsoft.EntityFrameworkCore;
using MyMvcSoft.Models;
namespace  MyMvcSoft.Db
{
    public class MyMvcSoftDb:DbContext
    {
        private readonly string _ConString = "server=.;database=MySoftDb;uid=sa;pwd=123456;";
        protected override void  OnConfiguring(DbContextOptionsBuilder builder)
        {
            builder.UseSqlServer(_ConString);
        }
        DbSet<Category> Category{get;set;}
        DbSet<Product> Product{get;set;}
    }
}
